package com.jinbei.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @author zflu
 * 开启websocket支持
 * 只有在spring boot jar环境运行的时候开启
 * war 包则不需要，需要注释
 * Created by lucky on 2018/7/31.
 */
//@Configuration
public class WebSocketConfig{

    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
}
